from django.conf.urls import patterns, include, url
from vdir.views import dir
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.conf import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'syncres.views.home', name='home'),
    # url(r'^syncres/', include('syncres.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^site_media/(.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^vdir/',include('vdir.urls',namespace='vdir',app_name='vdir')),
    url(r'^vfile/',include('vfile.urls',namespace='vfile',app_name='vfile')),
    url(r'^home/',include('home.urls')),
    url(r'^$',  dir),
)+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)


